/**
 * @Description :
 * @author : xyg
 * @date : 2021-05-28 10:28
 */

interface TodoItem {
    id: number,
    content: string;
    status: TodoStatus
}

enum TodoStatus {
    // 已完成
    FINISH = 'finish',
    // 正在做
    DOING = 'doing',
    // 待做；
    WILL = 'will'
}


function getStatusInfo(status:TodoStatus):string {
    switch (status) {
        case TodoStatus.FINISH:
          return "完成";
        case TodoStatus.DOING:
            return "执行中";
        case TodoStatus.WILL:
           return "未开始";
        default:
            return "";
    }
}


export  {
    TodoItem,TodoStatus,getStatusInfo
}
